﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XXVIII.Entity
{
    public class TablePropertyEntity
    {
        public string ColumnName { get; set; }

        public string ColumnType { get; set; }

        public bool IsNULL { get; set; }

        public bool IsKey { get; set; }

        public bool IsIdentity { get; set; }

        public string DefualtValue { get; set; }

        public string Describe { get; set; }

        public int Length { get; set; }
    }

    public class CreateCloumnEntity : TablePropertyEntity
    {
        /// <summary>
        /// decimal的小数位
        /// </summary>
        public int DecimalLength { get; set; }

        /// <summary>
        /// 自增 种子
        /// </summary>
        public int IdentitySeed { get; set; }

        /// <summary>
        /// 自增 增量
        /// </summary>
        public int IdentityIncrement { get; set; }
    }
}
